// 引入数据库
var mongoose=require("mongoose");
var loveSchema=new mongoose.Schema({
    // 用户id
    userId:{
        type: mongoose.Schema.Types.ObjectId,
            ref: 'userModel',
    },
    // 车id
    carId:{
        type: mongoose.Schema.Types.ObjectId,
            ref: 'carModel',
    },
})
mongoose.model("loveModel",loveSchema,"love");